package cate.game.videohall.vo;

import cate.game.play.part.BattleHero;
import cate.game.play.part.PlaySide;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

import java.util.ArrayList;
import java.util.List;

@NoteClass("PlaySideSimpleVO")
public class PlaySideSimpleVO {

	@NoteField("玩家快照")
	public RoleSnapShotSimpleVO snapshot;

	@NoteField("阵型模板ID")
	public int positionTid;

	@NoteField("上阵的英雄们")
	public List<BattleHeroSimpleVO> hs = new ArrayList<>();

	public PlaySideSimpleVO() {
	}

	public PlaySideSimpleVO(PlaySide ps) {
		this.snapshot = new RoleSnapShotSimpleVO(ps.snapshot);
		this.positionTid = ps.positionTid;
		for (BattleHero bh : ps.hs) {
			hs.add(new BattleHeroSimpleVO(bh));
		}
	}
}
